<?php

/**
 * Smarty plugin [qpimg]
 */

/**
 * Return css-source
 *
 * Type:     function
 * Name:     qpimg_css_source
 * @author   Andrei Bakulin <andrei.bakulin@gmail.com>
 * @version  1.0
 * @return string output from qpimg::get_css_source()
 */

function smarty_function_qpimg_css_source( $params, & $smarty )
{
    require_once( 'qpimg.php' );

    return qpimg::get_css_source( $params['map'], $params['hash'] );
}

?>